package com.xinyue.authorization.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xinyue.authorization.bean.Action;
import com.xinyue.authorization.dao.ActionDao;
import com.xinyue.authorization.service.ActionService;

@Service
@Transactional
public class ActionServiceImpl implements ActionService{
	@Autowired
	ActionDao dao;

	public void save(Action entity) {
		dao.save(entity);
	}

	public Integer deleteById(int actionId) {
		return dao.deleteById(actionId);
	}

	public void update(Action entity) {
		dao.update(entity);
	}

	public Action queryById(int actionId) {
		return dao.queryById(actionId);
	}

	public List<Action> queryAll(int begin, int count) {
		return dao.queryAll(begin, count);
	}

	public Integer queryCount() {
		return dao.queryCount();
	}
}